@extends('layouts.default') @section('main')
<meta http-equiv='Refresh' content='3;URL={{$jumpUrl}}'>
<link rel="stylesheet" href="/css/uniform.css" />
<link rel="stylesheet" href="/css/select2.css" />
<div id="content">
  <div id="content-header">
    <div id="breadcrumb"> <a href="{{url('home')}}" title="返回首页" class="tip-bottom"><i class="icon-home"></i> 首页</a> <a href="#" class="current">提示</a> </div>
  </div>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
		<div class="widget-box">
          <div class="widget-content">
          	@if($status)
            <div class="alert alert-success alert-block">
              <h4 class="alert-heading">操作成功</h4>
              {{$message}}，系统将在 <span id="wait" style="color: blue; font-weight: bold">3</span> 秒后自动跳转,如果不想等待,直接点击 <a id="href" href="{{$jumpUrl}}">这里</a> 跳转</div>
            @else
            <div class="alert alert-error alert-block">
              <h4 class="alert-heading">操作失败</h4>
              <font color="green">{{$message}}</font>，系统将在 <span id="wait" style="color: blue; font-weight: bold">3</span> 秒后自动跳转,如果不想等待,直接点击 <a id="href" href="{{$jumpUrl}}">这里</a> 跳转</div>
              @endif
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
	(function() {

		var wait = document.getElementById('wait'), href = document.getElementById('href').href;
		var interval = setInterval(function() {

			var time = --wait.innerHTML;
			(time == 0) && (location.href = href);
		}, 1000);
	})();
</script>
@stop
